package com.itheima.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 * @version 1.0
 * @description: TODO
 * @date 2023/5/4 9:27
 */
@RestController
@RequestMapping
public class DemoController {
    @Value("${server.port}")
    private String port;

    @RequestMapping("/hello")
    public String hello(){
        return "Hello World！My publish port is : " + port + "，我是shell脚本自动拉下来的代码。。。";
    }
}
